<?php
declare(strict_types=1);
/**
 * MineAdmin is committed to providing solutions for quickly building web applications
 * Please view the LICENSE file that was distributed with this source code,
 * For the full copyright and license information.
 * Thank you very much for using MineAdmin.
 *
 * @Author X.Mo<root@imoi.cn>
 * @Link   https://gitee.com/xmo/MineAdmin
 */
namespace Plugin\Attractions\Broadcast\Request\Broadcast_execution_log;

use Hyperf\Validation\Request\FormRequest;

/**
 * 广播执行日志验证数据类
 */
class BroadcastExecutionLogRequest extends FormRequest
{

    public function authorize(): bool
    {
        return true;
    }


    /**
     * 新增数据验证规则
     * return array
     */
    public function rules(): array
    {
        return [
            //播放音量 验证
            // 'volume_level' => 'required',

        ];
    }


    /**
     * 字段映射名称
     * return array
     */
    public function attributes(): array
    {
        return [
            'id' => '主键ID',
            'execution_type' => '执行类型：1-计划执行，2-手动执行，3-应急执行',
            'execution_status' => '执行状态：1-执行中，2-已完成，3-失败',
            'volume_level' => '播放音量',

        ];
    }

public function messages(): array
{
    return [
            'id.required' => '必填主键ID',
            'execution_type.required' => '必填执行类型：1-计划执行，2-手动执行，3-应急执行',
            'execution_status.required' => '必填执行状态：1-执行中，2-已完成，3-失败',
            'volume_level.required' => '必填播放音量',

    ];
}
}